﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F15 RID: 3861
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicCurSceneInfo : IMessage<RogueMagicCurSceneInfo>, IMessage, IEquatable<RogueMagicCurSceneInfo>, IDeepCloneable<RogueMagicCurSceneInfo>, IBufferMessage
	{
		// Token: 0x17003112 RID: 12562
		// (get) Token: 0x0600AD3F RID: 44351 RVA: 0x001D4E17 File Offset: 0x001D3017
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicCurSceneInfo> Parser
		{
			get
			{
				return RogueMagicCurSceneInfo._parser;
			}
		}

		// Token: 0x17003113 RID: 12563
		// (get) Token: 0x0600AD40 RID: 44352 RVA: 0x001D4E1E File Offset: 0x001D301E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicCurSceneInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003114 RID: 12564
		// (get) Token: 0x0600AD41 RID: 44353 RVA: 0x001D4E30 File Offset: 0x001D3030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicCurSceneInfo.Descriptor;
			}
		}

		// Token: 0x0600AD42 RID: 44354 RVA: 0x001D4E37 File Offset: 0x001D3037
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurSceneInfo()
		{
		}

		// Token: 0x0600AD43 RID: 44355 RVA: 0x001D4E40 File Offset: 0x001D3040
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurSceneInfo(RogueMagicCurSceneInfo other) : this()
		{
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.rotateInfo_ = ((other.rotateInfo_ != null) ? other.rotateInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AD44 RID: 44356 RVA: 0x001D4EB8 File Offset: 0x001D30B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurSceneInfo Clone()
		{
			return new RogueMagicCurSceneInfo(this);
		}

		// Token: 0x17003115 RID: 12565
		// (get) Token: 0x0600AD45 RID: 44357 RVA: 0x001D4EC0 File Offset: 0x001D30C0
		// (set) Token: 0x0600AD46 RID: 44358 RVA: 0x001D4EC8 File Offset: 0x001D30C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x17003116 RID: 12566
		// (get) Token: 0x0600AD47 RID: 44359 RVA: 0x001D4ED1 File Offset: 0x001D30D1
		// (set) Token: 0x0600AD48 RID: 44360 RVA: 0x001D4ED9 File Offset: 0x001D30D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x17003117 RID: 12567
		// (get) Token: 0x0600AD49 RID: 44361 RVA: 0x001D4EE2 File Offset: 0x001D30E2
		// (set) Token: 0x0600AD4A RID: 44362 RVA: 0x001D4EEA File Offset: 0x001D30EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMapRotateInfo RotateInfo
		{
			get
			{
				return this.rotateInfo_;
			}
			set
			{
				this.rotateInfo_ = value;
			}
		}

		// Token: 0x0600AD4B RID: 44363 RVA: 0x001D4EF3 File Offset: 0x001D30F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicCurSceneInfo);
		}

		// Token: 0x0600AD4C RID: 44364 RVA: 0x001D4F04 File Offset: 0x001D3104
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicCurSceneInfo other)
		{
			return other != null && (other == this || (object.Equals(this.Lineup, other.Lineup) && object.Equals(this.Scene, other.Scene) && object.Equals(this.RotateInfo, other.RotateInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AD4D RID: 44365 RVA: 0x001D4F6C File Offset: 0x001D316C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.rotateInfo_ != null)
			{
				num ^= this.RotateInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AD4E RID: 44366 RVA: 0x001D4FD4 File Offset: 0x001D31D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AD4F RID: 44367 RVA: 0x001D4FDC File Offset: 0x001D31DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AD50 RID: 44368 RVA: 0x001D4FE8 File Offset: 0x001D31E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.scene_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.Scene);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.Lineup);
			}
			if (this.rotateInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RotateInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AD51 RID: 44369 RVA: 0x001D5060 File Offset: 0x001D3260
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.rotateInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RotateInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AD52 RID: 44370 RVA: 0x001D50D0 File Offset: 0x001D32D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicCurSceneInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.rotateInfo_ != null)
			{
				if (this.rotateInfo_ == null)
				{
					this.RotateInfo = new RogueMapRotateInfo();
				}
				this.RotateInfo.MergeFrom(other.RotateInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AD53 RID: 44371 RVA: 0x001D517C File Offset: 0x001D337C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AD54 RID: 44372 RVA: 0x001D5188 File Offset: 0x001D3388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 74U)
					{
						if (num != 82U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.rotateInfo_ == null)
							{
								this.RotateInfo = new RogueMapRotateInfo();
							}
							input.ReadMessage(this.RotateInfo);
						}
					}
					else
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
					}
				}
				else
				{
					if (this.scene_ == null)
					{
						this.Scene = new SceneInfo();
					}
					input.ReadMessage(this.Scene);
				}
			}
		}

		// Token: 0x04004651 RID: 18001
		private static readonly MessageParser<RogueMagicCurSceneInfo> _parser = new MessageParser<RogueMagicCurSceneInfo>(() => new RogueMagicCurSceneInfo());

		// Token: 0x04004652 RID: 18002
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004653 RID: 18003
		public const int LineupFieldNumber = 9;

		// Token: 0x04004654 RID: 18004
		private LineupInfo lineup_;

		// Token: 0x04004655 RID: 18005
		public const int SceneFieldNumber = 1;

		// Token: 0x04004656 RID: 18006
		private SceneInfo scene_;

		// Token: 0x04004657 RID: 18007
		public const int RotateInfoFieldNumber = 10;

		// Token: 0x04004658 RID: 18008
		private RogueMapRotateInfo rotateInfo_;
	}
}
